package com.j1903.bean;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author fjj
 * @since 2021-12-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("userName")
    private String userName;

    @TableField("userPwd")
    private String userPwd;

    @TableField("roleId")
    private Integer roleId;

    /**
     * 性别1.男2.女
     */
    @TableField("userSex")
    private Integer userSex;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField(value = "createdDate", fill = FieldFill.INSERT)
    private Date createdDate;

    @TableField(value = "updatedDate", fill = FieldFill.INSERT_UPDATE)
    private Date updatedDate;
    public Users(String userName,String userPwd)
    {
        this.userName=userName;
        this.userPwd=userPwd;
    }


}
